package day1212_3;

class Teacher{
    char  sex;
    int  age;
    String  name;

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}







public class T1 {
    public static void main(String[] args) {
        Teacher  lsh=new Teacher();
        lsh.setName("李老师");//调用setName()给name赋值
        System.out.println(lsh.name);
    }
}
